package com.gainloop.Api;

import org.alexd.jsonrpc.JSONRPCClient;

public abstract class ApiAbstract
{
	
	static private JSONRPCClient  _client = null;
	
	static public JSONRPCClient GetClient()
	{
		if(_client == null) {
			//TODO change it to HTTPS
			_client = JSONRPCClient.create("http://www.gainloop.com/api");
		}
		
		return _client;
	}
	
	static public void SetClient(JSONRPCClient client)
	{
		_client = client;
	}
	
}
